package com.fsl.springbootdesignpattern.d_proxy.StaticProxy;

/**
 * @author sj2
 * 旅行者
 */
public class Traveller implements MyProxy {

    private String name;

    public Traveller(String name){
        this.name = name;
    }

    @Override
    public void buyTicket() {
        System.out.println("旅行者"+name+"买了一张飞机票");
    }
}
